package com.hm.shopping.service;

import java.util.List;

import com.hm.common.su.bean.PageInfo;
import com.hm.common.su.bean.PageInfo.PageInfoParam;
import com.hm.shopping.def.NewsAnnouncementEnum;
import com.hm.shopping.vo.NewsAnnouncementVo;

/**
 * @author shishun.wang
 * @date 2018年1月18日 上午10:42:37
 * @version 1.0
 * @describe
 */
public interface NewsAnnouncementService {

	/**
	 * 获取最新的新闻公告
	 * 
	 * @return
	 */
	public List<NewsAnnouncementVo> getTopNewsAnnouncement();

	/**
	 * 获取最新头条新闻公告
	 * 
	 * @return
	 */
	public List<NewsAnnouncementVo> getTopHeadlinesNewsAnnouncement();

	/**
	 * 添加数据
	 * @param newsAnnouncementVo
	 */
	public void addNewsAnnouncement(NewsAnnouncementVo newsAnnouncementVo);
	
	/**
	 * 获取广告信息
	 * @param newsAnnouncementId
	 * @return
	 */
	public NewsAnnouncementVo getNewsAnnouncement(String newsAnnouncementId);
	
	public PageInfo<NewsAnnouncementVo> queryNewsAnnouncement(PageInfoParam pageParam, NewsAnnouncementEnum newsAnnouncement, String newsName);

	public void updateNewsAnnouncement(NewsAnnouncementVo newsAnnouncementVo);

	public void deleteNewsAnnouncement(String newsAnnouncementId);
}
